<?php
require_once('include/connect.inc.php');
if($_REQUEST['del_id'] != "") //ถ้า ค่า del_id ไม่เท่ากับค่าว่างเปล่า
{
$del_id = $_REQUEST['del_id'];
$set_id = $_REQUEST['set_id'];
$sql_del="delete from tb_agree where set_id='$set_id' and r_student_id='$del_id';";
mysql_query($sql_del) or die(mysql_error());
sleep(2);
	header("location:show_subject.php");
			exit();
}
?>